package com.qipay.sp.excutor.alipay;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import org.springframework.stereotype.Component;

@Component
public class AlipayFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createWxTradeQueryExcutor() {
        return (AlipayWapTradeQueryExcutor) SpringContextUtil.getBean(AlipayWapTradeQueryExcutor.class);
    }

    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (AlipayWapExcutor) SpringContextUtil.getBean(AlipayWapExcutor.class);
    }

    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (AlipayNativeExcutor) SpringContextUtil.getBean(AlipayNativeExcutor.class);
    }
    @Override
    public AbstractExcutor createAlipayTransferExcutor() {
        return (AlipayTransferExcutor) SpringContextUtil.getBean(AlipayTransferExcutor.class);
    }


}
